package com.controller.front;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.service.front.IMusicFrontService;
@RequestMapping("/front")
@Controller
public class MusicFrontController {

	//调用业务逻辑层
	@Autowired
	private IMusicFrontService iMusicFrontService;
	@RequestMapping("/songs_list")
	public String songs_list(Model model){
		//查询所有歌单
		List<Map<String, Object>> songsList = iMusicFrontService.list();
		model.addAttribute("songsList", songsList);
		return "songsList";
	}
}
